home *** CD-ROM | disk | FTP | other *** search
- /*
- CSTRINGS.LBR VERSION 1.0
- Spark Software, Inc.
-
- If you find this software of use, it is requested that you send
- a donation ($10.00 suggested) to:
-
- Spark Software, Inc.
- 24 Royal Crest Dr., #5
- Nashua, NH 03060
-
- Upon receiving your donation, your name will be added to the
- List of Registered Users, and future updates can be obtained
- from the SPARKIE RBBS at (603) 888-8179.
-
- If you include an extra $10.00 with your donation, the newest
- version of CSTRINGS.LBR will be mailed to you.
-
- Call SPARKIE RBBS at the number above for other Spark Software
- products!!!
- */
-
- /*
- * strd (s, n1, n)
- * char *s;
- * int n1, n;
- *
- * This function deletes all characters in string s from position n1 to
- * position n. Basically the characters from position n to the end of
- * the string are copied to position n1.
- */
-
- strd (s, n1, n)
- char *s;
- int n1, n;
- {
- char *c1, *c2;
-
- c1 = &s[n1];
- c2 = &s[n];
-
- while ((*c1++ = *c2++) != '\0);
- } /* strd */
-
- /*
- * strdlf (s, n)
- * char *s;
- * int n;
- *
- * This function deletes the first n characters of string s.
- */
-
- strdlf (s, n)
- char *s;
- int n;
- {
- char *c;
-
- c = &s[n];
- while ((*s++ = *c++) != '\0);
- } /* strdlf */
-
- /*
- * strdrt (s, n)
- * char *s;
- * int n;
- *
- * This function deletes all of the characters in s from position n to
- * the end of the string.
- */
-
- strdrt (s, n)
- char *s;
- int n;
- {
- s[n] = '\0';
- } /* strdrt */